//
//  Constants.h
//  checkApp
//
//  Created by 小浩 on 2017/6/13.
//  Copyright © 2017年 ma. All rights reserved.
//

#ifndef Constants_h
#define Constants_h

//图片宽度
#define pic_width (screen_width-5*4-10*2)/5
//背景颜色
#define background_color color(244, 244, 244, 1)
//app默认橙色
#define pink_color color(238, 109, 140, 1)
#define blue_color color(70, 150, 252, 1)
#define red_color color(247, 43, 43, 1)
//文本颜色
#define default_text_color color(57, 57, 70, 1)
//tabBar颜色
#define navBar_color color(247, 43, 43, 1)
//tabBar颜色
#define tabBar_color color(255, 255, 255, 1)
//边框颜色
#define pic_borderColor color(229, 229, 229, 1)
//分割线颜色
#define sepline_color color(242, 242, 242, 1)
//广告视图高度
#define adver_picHeight 150

#define imageView_width 50

#define sepline_color color(0, 0, 0, 0.1)


//字号大小
//#define kBigTitleFontSize 20.0
#define kTitleFontSize 18.0*boringScale///<大标题
#define kRegularFontSize 16.0*boringScale///<中标题
#define kDescriptionFontSize 14.0*boringScale///<小标题
#define kTooMuchDescriptionFontSize 12.5*boringScale///<文本字体
#define kSimpleMuchDescriptionFontSize 12*boringScale///<文本字体
#define kBusinessViewDescriptionFontSize 11.0*boringScale
#define kSmallFontSize 10.0*boringScale

#define boringScale ([UIScreen mainScreen].bounds.size.width/320.0)

#define iPhone6                                                                \
([UIScreen instancesRespondToSelector:@selector(currentMode)]                \
? CGSizeEqualToSize(CGSizeMake(750, 1334),                              \
[[UIScreen mainScreen] currentMode].size)           \
: NO)
#define iPhone6Plus                                                            \
([UIScreen instancesRespondToSelector:@selector(currentMode)]                \
? CGSizeEqualToSize(CGSizeMake(1242, 2208),                             \
[[UIScreen mainScreen] currentMode].size)           \
: NO)
#define AppDelegateInstance ((AppDelegate*)([UIApplication sharedApplication].delegate))

#define BASE_URL @"http://192.168.1.141:9900/moduo/"
//#define BASE_URL @"http://192.168.1.135:9900/moduo/"

//token验证
#define CHECK_TOKEN_URL [NSString stringWithFormat:@"%@%@",BASE_URL,@"user/chooseToken"]//验证token

#define ITEM_LIST_URL [NSString stringWithFormat:@"%@%@",BASE_URL,@"manager/work/project/list"]
#define CHECK_CODE_URL [NSString stringWithFormat:@"%@%@",BASE_URL,@"manager/work/show/check"]

#endif /* Constants_h */
